//
//  CJNativeAd.h
//  CJMobileAd
//
//  Created by JJ on 2022/2/26.
//  Copyright © 2022 JJ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class CJNativeAd;
@protocol CJNativeAdDelegate <NSObject>

- (void)nativeExpressAdDidLoad:(NSArray *)nativeExpressViews;

- (void)nativeExpressAdDidRender:(id)nativeExpressView;

- (void)nativeExpressAdLoadFailed:(id)nativeExpressAd error:(NSError *)error;

- (void)nativeExpressAdOnClicked:(id)nativeExpressView;

- (void)nativeExpressAdOnClosed:(id)nativeExpressView;

@end

@interface CJNativeAd : NSObject

@property (nonatomic, weak) id <CJNativeAdDelegate> delegate;

- (instancetype)initWithSlotId:(NSString *)resourceId size:(CGSize)size rootViewController:(UIViewController *)rootViewController;

- (void)loadAdData:(NSInteger)count;

@end

NS_ASSUME_NONNULL_END
